

	




	
	
 <style>

     .paybox{margin-left: 70px; font-size: 13px; margin-top: -15px; color: #3e3e3e;font-weight:normal}
     .paybox_titel{ font-size: 15px; margin-top: 20px; color: black;font-weight:bold}
     .paybox_red{  color: red}
       li{list-style-type:none;}
     .jine{ margin-top: 20px!important; }
     .am-form-group{margin-left: -15px!important;}
     .you{margin-top: 3px;}

      #chongzhi{ margin-left: 170px; margin-top: -40px;}

 </style>

 <div class="fbneirong">
            <div style=""  class="paybox">
                <div  class="paybox_titel" >方式一： 银行卡转账 (大额转账推荐此方式，免手续费，非实时，工作时间9:30~19:00约10分钟内处理，19点之后不再处理审核)</div>
                <div class="paybox_red">重要通知：禁止使用财付通、ATM机、支付宝！！！</div>

                <div class="paybox_titel">注意事项！</div>
                <div >
                    <li>   1：为了方便财务确认转账来源，转账务必个位和十位数字不要都为0，如519.02或1158.18，禁止提交任何备注，备注敏感词处罚200-500元，多次备注敏感词封号处理，余额不予提现。</li>
                    <li>   2：选用方式一充值务必先打款，后提交。</li>
                    <li>   3：谢绝使用财付通、支付宝、ATM机转账</li>
                </div>

                <div class="paybox_titel" >第一步：请先转账到平台官方账号</div>
                <div>
                        <li>官方账户信息</li>
                        <li class="paybox_red"> 账户：  6217933301209498</li>
                        <li> 姓名：王久龙 </li>
                        <li>   银行信息：浦发银行 </li>
                </div>
                <div class="paybox_titel" >第二步：请确定提交转账金额</div>

            </div>

            <div class="am-form-group am-cf jine">
                <div class="zuo">转账金额：</div>
                <div class="you">
                    <input type="text" class="am-input-sm"   name="money" placeholder="请输入金额">
                </div>
            </div>
            <div class="am-form-group am-cf">
                <div class="zuo">打款姓名：</div>
                <div class="you">
                    <input type="text"   name="username" class="am-input-sm"  placeholder="请输入打款人姓名">
                </div>
            </div>

            <div class="am-form-group am-cf">
                <div class="zuo">充值截图：</div>
                <div class="you">

                <div  class="picbox" style="">
                    <img src="<?php echo base_url();?>/public/assets/image/wsc.png" class="picshow"   style=" " >
                </div>
                <a href="javascript:" class="file">上传图片
                    <input type="file" name="uploadFile" class="uploadPicButton" id="upload_file">
                </a>
                </div>
            </div>

            <div class="am-form-group am-cf">
                <div class="you">
                    <div    id="chongzhi" class="am-btn am-btn-secondary am-radius">确认充值</div>

                </div>
            </div>




    </div>




    </div>
    </div>
    </div>
    <div class="foods">
        <ul>
            版权所有@2019.
        </ul>
        <dl>
            <a href="" title="返回头部" class="am-icon-btn am-icon-arrow-up"></a>
        </dl>
    </div>
    </body>
    </html>


 <script>
     var picurl="";
     var picpath="";
     $(".uploadPicButton").change(function () {
         var pic = $('#upload_file')[0].files[0];
         var fd = new FormData();
         fd.append('uploadFile', pic);
         var url = "<?php echo base_url(); ?>/Business/uppic";
         $.ajax({
             url:url,
             type:"post",
             dataType:"json",
             // Form数据
             data: fd,
             cache: false,
             contentType: false,
             processData: false,
             success:function(data){
                 if(data.code==0){
                     $(".picshow").attr("src",data.url);
                     $(".picshow").addClass("newpic");
                     $(".picshow").show();
                     $("input[name=pic]").val(data.url);
                     picpath=data.path;
                     return;
                 }
                 layer.msg(data.msg);
             }
         });
     });
 </script>

    <script>

        var on_request=false;
        $("#chongzhi").click(function () {
            pay()
        });
        function pay() {
            if (on_request) {
                return;
            }
            var url = "<?php echo base_url(); ?>/Business/payaction";
            var postdata = {};
            var money = $("input[name='money']").val();
            var username= $("input[name='username']").val();
            postdata['money'] =money;
            postdata['username'] =username;
            if(money==""){
                $("input[name='money']").focus();
                layer.msg('缺少金额',{icon: 5,time:1000});
                return;
            }
            if(username==""){
                $("input[name='username']").focus();
                layer.msg('缺少打款姓名',{icon: 5,time:1000});
                return;
            }
            if(picpath==""){
                layer.msg('缺少充值截图',{icon: 5,time:1000});
                return;
            }
            postdata['pic'] = picpath;
            on_request = true;
            $.post(url, postdata, function (data) {
                on_request = false;
                if(data.code==0){
                    layer.msg('提交成功',{icon: 1,time:800},function () {
                        window.location.href="<?php echo base_url() ?>"+'/business/rechargelog' ;
                    });
                }else{
                    layer.msg(data.msg);
                }
            },"json");
        }



    </script>
	



 
 
 
 
